x86: TSC handling cleanups (version 2)
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 22 May 2010 05:31:47 +0000 (06:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 22 May 2010 05:31:47 +0000 (06:31 +0100)
commit3f03c620370e99bdf78120ce64580cd715ad150f
tree946d935765f472c31471d5310e7207e717bb035c
parentf3b88f2e646418ad3ed8ce7a19ea32d0b382654a
x86: TSC handling cleanups (version 2)

"I am removing the tsc_scaled variable that is never actually used
because when tsc needs to be scaled vtsc is 1.  I am also making this
more explicit in tsc_set_info.  I am also removing hvm_domain.gtsc_khz
that is a duplicate of d->arch.tsc_khz.  I am using scale_delta(delta,
&d->arch.ns_to_vtsc) to scale the tsc value before returning it to the
guest like in the pv case.  I added a feature flag to specify that the
pvclock algorithm is safe to be used in an HVM guest so that the guest
can now use it without hanging."

Version 2 fixes a bug which breaks PV domU time.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/save.c
xen/arch/x86/hvm/vpt.c
xen/arch/x86/time.c
xen/common/kernel.c
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/time.h
xen/include/public/features.h